var arrMenuID = new Array();
arrMenuID[0] = "Setup";
arrMenuID[1] = "Movie";
arrMenuID[2] = "TV";
arrMenuID[3] = "Game";
arrMenuID[4] = "Camera";
arrMenuID[5] = "Quit";

var arrFavID = new Array();
arrFavID[0] = "Favorite1";
arrFavID[1] = "Favorite2";
arrFavID[2] = "Favorite3";
arrFavID[3] = "Favorite4";

function setText(textID,val)
{
  document.getElementById(textID).value=val;
}
 
function showButton(ID)
{
  for (j = 0; j < 4; j++)  
  { 
    if(ID != arrMenuID[0]) 
	   document.getElementById(arrFavID[j]).label = ID + " Fav" + j;
  } 

  for (i = 0; i < arrMenuID.length; i++)  
  {  
    if (ID == arrMenuID[i])  
        document.getElementById(arrMenuID[i]).style.display="inline";               
    else
        document.getElementById(arrMenuID[i]).style.display="none"; 
  }  


}
 function show(id){
        document.getElementById(id).style.display='block';
    }
    function hide(id){
        document.getElementById(id).style.display='none';
    }